﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200071D RID: 1821
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetLevelRewardCsReq : IMessage<GetLevelRewardCsReq>, IMessage, IEquatable<GetLevelRewardCsReq>, IDeepCloneable<GetLevelRewardCsReq>, IBufferMessage
	{
		// Token: 0x17001755 RID: 5973
		// (get) Token: 0x060051EE RID: 20974 RVA: 0x000DE6BC File Offset: 0x000DC8BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetLevelRewardCsReq> Parser
		{
			get
			{
				return GetLevelRewardCsReq._parser;
			}
		}

		// Token: 0x17001756 RID: 5974
		// (get) Token: 0x060051EF RID: 20975 RVA: 0x000DE6C3 File Offset: 0x000DC8C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetLevelRewardCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001757 RID: 5975
		// (get) Token: 0x060051F0 RID: 20976 RVA: 0x000DE6D5 File Offset: 0x000DC8D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetLevelRewardCsReq.Descriptor;
			}
		}

		// Token: 0x060051F1 RID: 20977 RVA: 0x000DE6DC File Offset: 0x000DC8DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetLevelRewardCsReq()
		{
		}

		// Token: 0x060051F2 RID: 20978 RVA: 0x000DE6E4 File Offset: 0x000DC8E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetLevelRewardCsReq(GetLevelRewardCsReq other) : this()
		{
			this.level_ = other.level_;
			this.monsterId_ = other.monsterId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060051F3 RID: 20979 RVA: 0x000DE715 File Offset: 0x000DC915
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetLevelRewardCsReq Clone()
		{
			return new GetLevelRewardCsReq(this);
		}

		// Token: 0x17001758 RID: 5976
		// (get) Token: 0x060051F4 RID: 20980 RVA: 0x000DE71D File Offset: 0x000DC91D
		// (set) Token: 0x060051F5 RID: 20981 RVA: 0x000DE725 File Offset: 0x000DC925
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x17001759 RID: 5977
		// (get) Token: 0x060051F6 RID: 20982 RVA: 0x000DE72E File Offset: 0x000DC92E
		// (set) Token: 0x060051F7 RID: 20983 RVA: 0x000DE736 File Offset: 0x000DC936
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MonsterId
		{
			get
			{
				return this.monsterId_;
			}
			set
			{
				this.monsterId_ = value;
			}
		}

		// Token: 0x060051F8 RID: 20984 RVA: 0x000DE73F File Offset: 0x000DC93F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetLevelRewardCsReq);
		}

		// Token: 0x060051F9 RID: 20985 RVA: 0x000DE74D File Offset: 0x000DC94D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetLevelRewardCsReq other)
		{
			return other != null && (other == this || (this.Level == other.Level && this.MonsterId == other.MonsterId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060051FA RID: 20986 RVA: 0x000DE78C File Offset: 0x000DC98C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.MonsterId != 0U)
			{
				num ^= this.MonsterId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060051FB RID: 20987 RVA: 0x000DE7E4 File Offset: 0x000DC9E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060051FC RID: 20988 RVA: 0x000DE7EC File Offset: 0x000DC9EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060051FD RID: 20989 RVA: 0x000DE7F8 File Offset: 0x000DC9F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Level != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Level);
			}
			if (this.MonsterId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.MonsterId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060051FE RID: 20990 RVA: 0x000DE854 File Offset: 0x000DCA54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.MonsterId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MonsterId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060051FF RID: 20991 RVA: 0x000DE8AC File Offset: 0x000DCAAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetLevelRewardCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.MonsterId != 0U)
			{
				this.MonsterId = other.MonsterId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005200 RID: 20992 RVA: 0x000DE8FC File Offset: 0x000DCAFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005201 RID: 20993 RVA: 0x000DE908 File Offset: 0x000DCB08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 80U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.MonsterId = input.ReadUInt32();
					}
				}
				else
				{
					this.Level = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002022 RID: 8226
		private static readonly MessageParser<GetLevelRewardCsReq> _parser = new MessageParser<GetLevelRewardCsReq>(() => new GetLevelRewardCsReq());

		// Token: 0x04002023 RID: 8227
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002024 RID: 8228
		public const int LevelFieldNumber = 5;

		// Token: 0x04002025 RID: 8229
		private uint level_;

		// Token: 0x04002026 RID: 8230
		public const int MonsterIdFieldNumber = 10;

		// Token: 0x04002027 RID: 8231
		private uint monsterId_;
	}
}
